#ifndef _ARRAY_H_
#define _ARRAY_H_

#include<cstddef>

struct Array{

	explicit Array (size_t s);
	Array (const Array & a);
	~Array ();
	Array & operator= (const Array & a);
	int get (size_t index) const;
	void set (size_t index, int value);
	void push_back (int value);
	size_t get_size () const;
	size_t get_capacity () const;


private:
	void swap (Array & a);

private:
	int * p;
	size_t size;
	size_t capacity;
};

#endif // _ARRAY_H_
